using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DNAide.Drawing;

public partial class image_manipulation_crop : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{

	}

	protected override void OnInit(EventArgs e)
	{
		Crop1.ApplyTransformations += new DNAide.Web.UI.Controls.DNAideImageControl.ApplyTransformationsEventHandler(Crop1_ApplyTransformations);
		base.OnInit(e);
	}

	void Crop1_ApplyTransformations(object sender, ref System.Drawing.Bitmap bitmapToTransform)
	{
		bitmapToTransform = BitmapAide.Crop(bitmapToTransform, 290, 205, 164, 160);
	}
}
